package com.reebake.ideal.protect.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

@Data
@ConfigurationProperties(prefix = "mvc.protect")
public class ProtectProperties {
    private List<String> ignored = new ArrayList<>();

    /**
     * 小于或等于0不校验时间戳, 单位：毫秒
     */
    private long maxTimeGap = 5 * 60 * 1000;
    /** 保护类型，即过滤器类名 */
    private List<String> protectTypes = new ArrayList<>();
}
